///把持久化的东西搬到这里来
import { createPinia } from 'pinia'
//持久化的插件 加上变成app.use(createPinia().use(persist))
import persist from 'pinia-plugin-persistedstate'
//创建一个仓库
const pinia = createPinia()
//挂载持久化
pinia.use(persist)
export default pinia

// 用index当中转站，其他地方直接从index导函数就行了
export * from './modules/user.js'
export * from './modules/onlineUsers.js'
export * from './modules/news.js'
export * from './modules/allUsers.js'
export * from './modules/name.js'
export * from './modules/privateNews.js'
